How do I curry this function correctly

welcome to shbcf.ru